package com.ruoyi.lwpq.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.lwpq.mapper.LwpqGshtMapper;
import com.ruoyi.lwpq.domain.LwpqGsht;
import com.ruoyi.lwpq.service.ILwpqGshtService;
import com.ruoyi.common.core.text.Convert;

/**
 * 用工单位合同Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-09
 */
@Service
public class LwpqGshtServiceImpl implements ILwpqGshtService 
{
    @Autowired
    private LwpqGshtMapper lwpqGshtMapper;

    /**
     * 查询用工单位合同
     * 
     * @param id 用工单位合同主键
     * @return 用工单位合同
     */
    @Override
    public LwpqGsht selectLwpqGshtById(Long id)
    {
        return lwpqGshtMapper.selectLwpqGshtById(id);
    }

    /**
     * 查询用工单位合同列表
     * 
     * @param lwpqGsht 用工单位合同
     * @return 用工单位合同
     */
    @Override
    public List<LwpqGsht> selectLwpqGshtList(LwpqGsht lwpqGsht)
    {
        return lwpqGshtMapper.selectLwpqGshtList(lwpqGsht);
    }

    /**
     * 新增用工单位合同
     * 
     * @param lwpqGsht 用工单位合同
     * @return 结果
     */
    @Override
    public int insertLwpqGsht(LwpqGsht lwpqGsht)
    {
        return lwpqGshtMapper.insertLwpqGsht(lwpqGsht);
    }

    /**
     * 修改用工单位合同
     * 
     * @param lwpqGsht 用工单位合同
     * @return 结果
     */
    @Override
    public int updateLwpqGsht(LwpqGsht lwpqGsht)
    {
        return lwpqGshtMapper.updateLwpqGsht(lwpqGsht);
    }

    /**
     * 批量删除用工单位合同
     * 
     * @param ids 需要删除的用工单位合同主键
     * @return 结果
     */
    @Override
    public int deleteLwpqGshtByIds(String ids)
    {
        return lwpqGshtMapper.deleteLwpqGshtByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除用工单位合同信息
     * 
     * @param id 用工单位合同主键
     * @return 结果
     */
    @Override
    public int deleteLwpqGshtById(Long id)
    {
        return lwpqGshtMapper.deleteLwpqGshtById(id);
    }
}
